﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BuyTicket.Models;
using System.Text.RegularExpressions;

namespace BuyTicket
{
    class Helper
    {
        public static List<Station> ParseStation()
        {
            List<Station> result = new List<Station>();
            string[] sArry = Regex.Split(Properties.Resources.Station,
                "@");
            foreach (var line in sArry)
            {
                if (!string.IsNullOrEmpty(line))
                {
                    result.Add(Station.Create(line));
                }
            }
            return result;
        }
    }
}
